﻿
//Url : 默认为List
//Target : 默认为FrameworkList
function loadList(url, targetId) {
    var _url = url == undefined ? "List" : url;
    var _targetId = undefined ? "FrameworkList" : targetId;
    loadPage(_url, "", _targetId);
}
//加载页面
function loadPage(url, param, targetId) {
    //targetId默认为Framework
    var frameworkId = "";
    var params = {};
    if (arguments.length <= 2) {
        frameworkId = "Framework";
        if (typeof url == "object") {
            params = param;
        }
    } else {
        frameworkId = targetId;
    }
    //开始加载页面
    $("#" + frameworkId).modal("show");
    $.ajax({
        url: url,
        type: "get",
        dataType: "html",
        data: params,
        success: function (data) {
            $("#" + frameworkId + "Content").html(data);
        },
        error: function (error) {
            showError("获取数据失败");
        }
    });

}


//添加页面
function createPage(url,msg) {
    
}

